<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>员工列表 <small><a href="{{route('staffs.create')}}">添加</a></small></h2>
    <ul>
    @foreach($staffs as $staff)
        <li>{{$staff->name}} : {{$staff->email}} - <a href="{{route('staffs.show', $staff->staff_id)}}">查看</a> | <a href="{{route('staffs.edit', $staff->staff_id)}}">修改</a> | <a href="{{route('staffs.destroy', $staff->staff_id)}}">删除</a></li>
    @endforeach
    </ul>
</body>
</html>